<? $totals = list_payment_history($id,'totals',""); ?>
<TABLE border=0 class='bTable' cellspacing='0'>
        <TR>
                <TH colspan='2'><?=translate('commissions_title');?></TH>
        </TR>
        <TR>
                <TD>
                        <table width='100%'  style='border-width:0' cellpadding=0 cellspacing=0 >
                                <tr>
                                        <td style='border-width:0;padding:0'><?=translate('commissions_total');?>&nbsp;&nbsp;</td>
                                        <td style='border-width:0;padding:0' align='right'>(<?=$totals[min_date];?> -> <?=date("Y-m");?>)</td>
                                </tr>
                        </table>
                </TD>
                <TD><?=$totals[total];?></TD>
        </TR>
        <TR>
                <TD>
                        <table width='100%'  style='border-width:0' cellpadding=0 cellspacing=0 >
                                <tr>
                                        <td style='border-width:0;padding:0'><?=translate('commissions_payable');?>&nbsp;&nbsp;</td>
                                        <td style='border-width:0;padding:0' align='right'>(<?=$totals[min_date];?> -> <?=$totals[max_date];?>)</td>
                                </tr>
                        </table>
                </TD>
                <TD><?=$totals[payable];?>  <? if($commision_totals_advanced) echo"<font color='#FF0000'>*</font>";?> </TD>
        </TR>
</TABLE>
<? if($commision_totals_advanced){ ?>
<BR>
 <font color='#FF0000'>*</font><?=translate('commissions_note');?>
<BR>
<? } ?>
